package com.zhihao.takeaway.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhihao.takeaway.common.utils.EasyUITable;
import com.zhihao.takeaway.entity.Chat;
import org.springframework.transaction.annotation.Transactional;

public interface ChatService extends IService<Chat> {

    EasyUITable selectEncord(String tableName,String fromAccount,String toAccount);

    @Transactional
    void saveEncord(String fromAccount,String toAccount,String message);
}
